It's just less tedious, and we're GCC/LLVM specific anyways.
*
*/
-#ifndef __OSTREE_CHAIN_INPUT_STREAM_H__
-#define __OSTREE_CHAIN_INPUT_STREAM_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif /* __OSTREE_CHAIN_INPUT_STREAM_H__ */
*
*/
-#ifndef __OSTREE_CHECKSUM_INPUT_STREAM_H__
-#define __OSTREE_CHECKSUM_INPUT_STREAM_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif /* __OSTREE_CHECKSUM_INPUT_STREAM_H__ */
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef _OSTREE_CORE
-#define _OSTREE_CORE
+#pragma once
#include <otutil.h>
gboolean ostree_validate_structureof_dirmeta (GVariant *index,
GError **error);
-#endif /* _OSTREE_REPO */
+
+G_END_DECLS
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef _OSTREE_DIFF
-#define _OSTREE_DIFF
+#pragma once
#include "ostree-core.h"
#include "ostree-types.h"
G_END_DECLS
-#endif /* _OSTREE_REPO */
* Author: Alexander Larsson <alexl@redhat.com>
*/
-#ifndef __OSTREE_LIBARCHIVE_INPUT_STREAM_H__
-#define __OSTREE_LIBARCHIVE_INPUT_STREAM_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif /* __OSTREE_LIBARCHIVE_INPUT_STREAM_H__ */
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef _OSTREE_MUTABLE_TREE
-#define _OSTREE_MUTABLE_TREE
+#pragma once
#include "ostree-types.h"
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef _OSTREE_REPO_FILE_ENUMERATOR
-#define _OSTREE_REPO_FILE_ENUMERATOR
+#pragma once
#include "ostree-repo-file.h"
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef _OSTREE_REPO_FILE
-#define _OSTREE_REPO_FILE
+#pragma once
#include "ostree-types.h"
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef _OSTREE_REPO
-#define _OSTREE_REPO
+#pragma once
#include "ostree-core.h"
#include "ostree-types.h"
G_END_DECLS
-#endif /* _OSTREE_REPO */
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef _OSTREE_TRAVERSE
-#define _OSTREE_TRAVERSE
+#pragma once
#include "ostree-core.h"
#include "ostree-types.h"
G_END_DECLS
-#endif /* _OSTREE_REPO */
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef _OSTREE_TYPES
-#define _OSTREE_TYPES
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_H__
+#pragma once
#include <ostree-checksum-input-stream.h>
#include <ostree-chain-input-stream.h>
#include <ostree-repo-file.h>
#include <ostree-traverse.h>
#include <ostree-diff.h>
-
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_CHECKSUM_UTILS_H__
-#define __OSTREE_CHECKSUM_UTILS_H__
+#pragma once
#include <gio/gio.h>
GError **error);
G_END_DECLS
-
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_GIO_UTILS_H__
-#define __OSTREE_GIO_UTILS_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_KEYFILE_UTILS_H__
-#define __OSTREE_KEYFILE_UTILS_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_OPT_UTILS_H__
-#define __OSTREE_OPT_UTILS_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_SPAWN_UTILS_H__
-#define __OSTREE_SPAWN_UTILS_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_UNIX_UTILS_H__
-#define __OSTREE_UNIX_UTILS_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_VARIANT_UTILS_H__
-#define __OSTREE_VARIANT_UTILS_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_WAITABLE_QUEUE_H__
-#define __OSTREE_WAITABLE_QUEUE_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_UTIL_H__
-#define __OSTREE_UTIL_H__
+#pragma once
#include <gio/gio.h>
#include <libgsystem.h>
void ot_ptrarray_add_many (GPtrArray *a, ...) G_GNUC_NULL_TERMINATED;
-#endif
* Boston, MA 02111-1307, USA.
*/
-#ifndef _OSTREE_CURL_FETCHER
-#define _OSTREE_CURL_FETCHER
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Boston, MA 02111-1307, USA.
*/
-#ifndef _OSTREE_FETCHER
-#define _OSTREE_FETCHER
+#pragma once
#define LIBSOUP_USE_UNSTABLE_REQUEST_API
#include <libsoup/soup.h>
G_END_DECLS
-#endif
* Boston, MA 02111-1307, USA.
*/
-#ifndef __OT_PRUNE_H__
-#define __OT_PRUNE_H__
+#pragma once
#include "ostree.h"
G_END_DECLS
-#endif /* __OT_PRUNE_H__ */
* Boston, MA 02111-1307, USA.
*/
-#ifndef __OT_PULL_H__
-#define __OT_PULL_H__
+#pragma once
#include "ostree.h"
G_END_DECLS
-#endif /* __OT_PRUNE_H__ */
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OT_ADMIN_BUILTINS__
-#define __OT_ADMIN_BUILTINS__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OT_ADMIN_DEPLOY__
-#define __OT_ADMIN_DEPLOY_
+#pragma once
#include <gio/gio.h>
#include "ot-deployment.h"
G_END_DECLS
-#endif
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OT_ADMIN_FUNCTIONS__
-#define __OT_ADMIN_FUNCTIONS__
+#pragma once
#include <gio/gio.h>
#include "ostree.h"
G_END_DECLS
-#endif
* Boston, MA 02111-1307, USA.
*/
-#ifndef __OT_BOOTLOADER_SYSLINUX_H__
-#define __OT_BOOTLOADER_SYSLINUX_H__
+#pragma once
#include "ot-bootloader.h"
G_END_DECLS
-#endif /* __OT_BOOTLOADER_SYSLINUX_H__ */
* Boston, MA 02111-1307, USA.
*/
-#ifndef __OT_BOOTLOADER_H__
-#define __OT_BOOTLOADER_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif /* __OT_BOOTLOADER_H__ */
* Author: Colin Walters <walters@verbum.org>
*/
-#ifndef __OSTREE_BUILTINS__
-#define __OSTREE_BUILTINS__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif
* Boston, MA 02111-1307, USA.
*/
-#ifndef __OT_CONFIG_PARSER_H__
-#define __OT_CONFIG_PARSER_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif /* __OT_CONFIG_PARSER_H__ */
* Boston, MA 02111-1307, USA.
*/
-#ifndef __OT_DEPLOYMENT_H__
-#define __OT_DEPLOYMENT_H__
+#pragma once
#include <gio/gio.h>
#include "ot-config-parser.h"
G_END_DECLS
-#endif /* __OT_DEPLOYMENT_H__ */
* Author: Colin Walters <walters@verbum.org>
*/
+#pragma once
+
#include <gio/gio.h>
typedef enum {
* Boston, MA 02111-1307, USA.
*/
-#ifndef __OT_ORDERED_HASH_H__
-#define __OT_ORDERED_HASH_H__
+#pragma once
#include <gio/gio.h>
G_END_DECLS
-#endif /* __OT_ORDERED_HASH_H__ */
*
*/
-#ifndef _OSTREE_MOUNT_UTIL_H
-#define _OSTREE_MOUNT_UTIL_H
+#pragma once
int perrorv (const char *format, ...) __attribute__ ((format (printf, 1, 2)));
-#endif